package kr.co.icebird.temp;

import java.io.FileOutputStream;

import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.Workbook;

public class ExcelWork01 {

	public void createExcel() throws Exception {

		Workbook wb01 = new HSSFWorkbook();
		FileOutputStream fos01 = new FileOutputStream("c:/temp/excel01.xls");
		wb01.write(fos01);
		fos01.close();

		FileOutputStream fos02 = new FileOutputStream("c:/temp/excel01.xlsx");
		wb01.write(fos02);
		fos02.close();
	}

	public static void main(String[] args) throws Exception {
		ExcelWork01 ex01 = new ExcelWork01();
		ex01.createExcel();
	}
}
